/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package stis.statpro.ibs.view;

import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import stis.statpro.ibs.widget.WidgetPanelInsertB;

/**
 *
 * @author habib <imamhabibpamungkas@gmail.com>
 */
public class PanelInsertB extends javax.swing.JPanel {

    /**
     * Creates new form PanelInsertB
     */
    public PanelInsertB() {
        initComponents();
        kip.setEnabled(false);
    }

    public void addListenerNext(ActionListener l){
        buttonNext.addActionListener(l);
    }
    
    public void addListenerPrev(ActionListener l){
        buttonPrev.addActionListener(l);
    }

    public JTextArea getAlamatPrsh() {
        return alamatPrsh;
    }

    public JTextArea getAlamatPusat() {
        return alamatPusat;
    }

    public JButton getButtonNext() {
        return buttonNext;
    }

    public JTextField getEmailPrsh() {
        return emailPrsh;
    }

    public JTextField getEmailPusat() {
        return emailPusat;
    }

    public JTextField getFaxPrsh() {
        return faxPrsh;
    }

    public JTextField getFaxPusat() {
        return faxPusat;
    }

    public JButton getjButton3() {
        return buttonPrev;
    }

    public JPanel getjPanel1() {
        return jPanel1;
    }

    public JScrollPane getjScrollPane1() {
        return jScrollPane1;
    }

    public JScrollPane getjScrollPane2() {
        return jScrollPane2;
    }

    public JTextField getKip() {
        return kip;
    }

    public JTextField getKodeposPrsh() {
        return kodeposPrsh;
    }

    public JTextField getKodeposPusat() {
        return kodeposPusat;
    }

    public JTextField getNamaPrsh() {
        return namaPrsh;
    }

    public JTextField getTelpPrsh() {
        return telpPrsh;
    }

    public JTextField getTelpPusat() {
        return telpPusat;
    }

    public WidgetPanelInsertB getWidgetPanelInsertB1() {
        return widgetPanelInsertB1;
    }
    
    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        buttonNext = new javax.swing.JButton();
        buttonPrev = new javax.swing.JButton();
        widgetPanelInsertB1 = new stis.statpro.ibs.widget.WidgetPanelInsertB();
        namaPrsh = new javax.swing.JTextField();
        kodeposPrsh = new javax.swing.JTextField();
        emailPrsh = new javax.swing.JTextField();
        telpPrsh = new javax.swing.JTextField();
        faxPrsh = new javax.swing.JTextField();
        kodeposPusat = new javax.swing.JTextField();
        emailPusat = new javax.swing.JTextField();
        telpPusat = new javax.swing.JTextField();
        faxPusat = new javax.swing.JTextField();
        kip = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        alamatPusat = new javax.swing.JTextArea();
        jScrollPane2 = new javax.swing.JScrollPane();
        alamatPrsh = new javax.swing.JTextArea();

        setMinimumSize(new java.awt.Dimension(647, 453));
        setPreferredSize(new java.awt.Dimension(647, 453));
        setLayout(new java.awt.BorderLayout());

        jPanel1.setOpaque(false);
        jPanel1.setPreferredSize(new java.awt.Dimension(649, 30));

        buttonNext.setText("Next>>");

        buttonPrev.setText("<<Prev");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(buttonPrev)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 487, Short.MAX_VALUE)
                .addComponent(buttonNext)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonNext)
                    .addComponent(buttonPrev))
                .addGap(0, 7, Short.MAX_VALUE))
        );

        add(jPanel1, java.awt.BorderLayout.PAGE_END);

        widgetPanelInsertB1.setMinimumSize(new java.awt.Dimension(647, 453));
        widgetPanelInsertB1.setPreferredSize(new java.awt.Dimension(647, 453));

        kip.setText("IDPerusahaan");

        alamatPusat.setColumns(20);
        alamatPusat.setRows(5);
        jScrollPane1.setViewportView(alamatPusat);

        alamatPrsh.setColumns(20);
        alamatPrsh.setRows(5);
        jScrollPane2.setViewportView(alamatPrsh);

        javax.swing.GroupLayout widgetPanelInsertB1Layout = new javax.swing.GroupLayout(widgetPanelInsertB1);
        widgetPanelInsertB1.setLayout(widgetPanelInsertB1Layout);
        widgetPanelInsertB1Layout.setHorizontalGroup(
            widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(widgetPanelInsertB1Layout.createSequentialGroup()
                .addContainerGap(287, Short.MAX_VALUE)
                .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(kip, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(namaPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 203, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, widgetPanelInsertB1Layout.createSequentialGroup()
                            .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(emailPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(telpPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(117, 117, 117)
                            .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(faxPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(kodeposPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGroup(widgetPanelInsertB1Layout.createSequentialGroup()
                            .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(emailPusat, javax.swing.GroupLayout.DEFAULT_SIZE, 115, Short.MAX_VALUE)
                                .addComponent(telpPusat))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(kodeposPusat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(faxPusat, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 62, Short.MAX_VALUE))
        );
        widgetPanelInsertB1Layout.setVerticalGroup(
            widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(widgetPanelInsertB1Layout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(kip, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(138, 138, 138)
                .addComponent(namaPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(13, 13, 13)
                .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(kodeposPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(emailPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(faxPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(telpPrsh, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(7, 7, 7)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(kodeposPusat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(emailPusat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(widgetPanelInsertB1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(faxPusat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(telpPusat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(39, Short.MAX_VALUE))
        );

        add(widgetPanelInsertB1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextArea alamatPrsh;
    private javax.swing.JTextArea alamatPusat;
    private javax.swing.JButton buttonNext;
    private javax.swing.JButton buttonPrev;
    private javax.swing.JTextField emailPrsh;
    private javax.swing.JTextField emailPusat;
    private javax.swing.JTextField faxPrsh;
    private javax.swing.JTextField faxPusat;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTextField kip;
    private javax.swing.JTextField kodeposPrsh;
    private javax.swing.JTextField kodeposPusat;
    private javax.swing.JTextField namaPrsh;
    private javax.swing.JTextField telpPrsh;
    private javax.swing.JTextField telpPusat;
    private stis.statpro.ibs.widget.WidgetPanelInsertB widgetPanelInsertB1;
    // End of variables declaration//GEN-END:variables
}
